package org.kukker;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

import org.kukker.event.Event;
import org.kukker.list.IKukkerListItemListener;
import org.kukker.list.IKukkerListItemView;
import org.kukker.list.KukkerListAdapter;
import org.kukker.list.KukkerListView;
import org.kukker.upcoming.UpcomingEvent;
import org.kukker.upcoming.UpcomingWebService;
import org.kukker.view.SearchEventsLayout;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
import org.xmlpull.v1.XmlPullParser;

import android.app.Activity;
import android.app.ListActivity;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MotionEvent;
import android.view.SubMenu;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.view.WindowManager;
import android.view.ViewGroup.LayoutParams;
import android.view.animation.Animation.AnimationListener;
import android.widget.AbsoluteLayout;
import android.widget.Adapter;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView.OnListViewScrollListener;
import android.xml.dom.DocumentImpl;
import android.xml.dom.ElementImpl;

public class Test extends Activity {
	/** Called when the activity is first created. */

	private KukkerListView eventListView;
	private KukkerListAdapter eventListAdapter;
	private DBHelper dbHelper;
	private String debugtag0 = "test";
	
	   public boolean onCreateOptionsMenu(Menu menu){
	    	
	    SubMenu subMenu1 = menu.addSubMenu(0,0,"File");
	    	subMenu1.setDefaultItem(2);
	    	
	    	subMenu1.add(0,2,"New").setNumericShortcut('1');
	    	subMenu1.add(0,3,"Save").setNumericShortcut('2');
	    	subMenu1.add(0,4,"SaveAs").setNumericShortcut('3');
	    	subMenu1.add(0,5,"Close").setNumericShortcut('4');
	    	    	
	    	SubMenu subMenu2 = menu.addSubMenu(0,6,"Search");
	    	subMenu2.add(0,7, "Find");
	    	subMenu2.add(0,8, "Find&Replace");
	    	
	    	SubMenu subMenu3 = menu.addSubMenu(0,9,"Help");
	    	subMenu3.add(0,10, "About");
	    	subMenu3.add(0,11, "Credit");
	    	
	    	SubMenu subMenu4 = menu.addSubMenu(0,12,"Options");
	    	subMenu4.add(0,13, "Preferences");
	    	
	    	
	    	return true;
	    }
	    
	   
	public void onDestroy(){
		super.onDestroy();
		Log.i("activity_process",this.getClass().getName()+" onDestroy ");
		//this.dbHelper.close();		
	}
	
	public void onFreeze(Bundle icicle ){
		super.onFreeze(icicle);
		Log.i("activity_process",this.getClass().getName()+" onFreeze ");		
	}
	
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		
		setContentView(R.layout.test);
	}
}